import request from '@/utils/request'

// 查询代理商等级列表
export function listGrade(data) {
  return request({
    url: '/agent/grade/list',
    method: 'post',
    data: data
  })
}

// 查询代理商等级详细
export function getGrade(id) {
  return request({
    url: '/agent/grade/' + id,
    method: 'get'
  })
}

// 新增代理商等级
export function addGrade(data) {
  return request({
    url: '/agent/grade/add',
    method: 'post',
    data: data
  })
}

// 修改代理商等级
export function updateGrade(data) {
  return request({
    url: '/agent/grade/edit',
    method: 'post',
    data: data
  })
}

// 删除代理商等级
export function delGrade(id) {
  return request({
    url: '/agent/grade/remove/' + id,
    method: 'post'
  })
}
